<?php
require("../../class/connect.php");
require("../../class/db_sql.php");
require("../../class/q_functions.php");
require("../../data/dbcache/class.php");
require("../../class/user.php");
require("../../class/page_obj.php");
require("../../data/dbcache/MemberLevel.php");
$link=db_connect();
$empire=new mysqlquery();
$editor=1;
//是否登陆
if($is_my){
	$user=islogin();
	$r=ReturnUserInfo($user[userid]);
}
$nums=DbTouch("phome_jat_act_registration",array("uid"=>$user_id),"count(*) as total");
$page=$_GET['p'];
$arrActive=array(1=>"",2=>"active",3=>"");
$page=new page_obj($page,array("itemnum"=>10,"border"=>4,"row_count"=>$nums['total']));
$limit_str=$page->get_limit_str();
$a=$empire->query("select act.* from  phome_jat_act_registration  reg left join phome_ecms_actives act on (reg.act_id=act.id) where reg.uid ='".$user_id."' order by reg.time ".$limit_str);
while($t=$empire->fetch($a)){
	$list[]=$t;
}
require(ECMS_PATH.'e/template/active/list.php');
db_close();
$empire=null;
?>